.TH lis_array_matvec 3 "3 Dec 2014" "Man Page" "Lis Library Functions"

.SH NAME

lis_array_matvec \- calculate the matrix vector product

.SH SYNOPSIS

#include "lis.h"

\fBLIS_INT lis_array_matvec\fR(\fBLIS_INT n\fR, \fBLIS_SCALAR a[]\fR, \fBLIS_SCALAR x[]\fR, \fBLIS_SCALAR y[]\fR, \fBLIS_INT op\fR);

.SH DESCRIPTION

Calculate the matrix-vector product \fIAx\fR.

.SH INPUT

.IP "\fBn\fR"
The size of the matrix and vectors

.IP "\fBa\fR"
The array that stores matrix \fIA\fR of size \fIn * n\fR

.IP "\fBx\fR"
The array that stores vector \fIx\fR of size \fIn\fR

.IP "\fBy\fR"
The array that stores vector \fIy\fR of size \fIn\fR

.IP "\fBop\fR"
.RS
.IP "\fBLIS_INS_VALUE\fR"
\fIy\fR = \fIAx\fR
.IP "\fBLIS_SUB_VALUE\fR"
\fIy\fR = \fIy - Ax\fR

.SH OUTPUT

.IP "\fBy\fR"
\fIy\fR

.SH EXIT STATUS

The following exit values are returned:
.IP "0"
The process is normally terminated
.IP "unspecified"
An error occurred

.SH SEE ALSO

.BR lis (3)
.PP
http://www.ssisc.org/lis/

